<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlbumClass extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('album_class', function (Blueprint $table) {
            $table->increments('aclass_id');
            $table->string('aclass_name')->comment('相册名称');
            $table->integer('store_id')->unsigned()->comment('所属店铺id');
            $table->tinyInteger('aclass_des')->comment('相册描述');
            $table->tinyInteger('aclass_sort')->unsigned()->comment('排序');
            $table->string('aclass_cover')->comment('相册封面');
            $table->integer('upload_time')->unsigned()->comment('图片上传时间');
            $table->tinyInteger('is_default')->unsigned()->default(0)->comment('是否为默认相册,1代表默认');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('album_class');
    }
}
